package com.cx.thread.test;

public class ProducterRunnable implements Runnable{
    private Producter producter;

    public ProducterRunnable(Producter producter) {
        this.producter = producter;
    }
    @Override
    public void run() {
        producter.send();//发送消息
    }
}